package com.gph.saviorframework.es.core.facet.result;

import com.gph.saviorframework.es.core.facet.AbstractFacetResult;
import com.gph.saviorframework.es.core.facet.FacetType;

import java.util.List;

@Deprecated
public class TermResult extends AbstractFacetResult {

	private List<Term> terms;
	private long total;
	private long other;
	private long missing;

	public TermResult(String name, List<Term> terms, long total, long other, long missing) {
		super(name, FacetType.term);
		this.terms = terms;
		this.total = total;
		this.other = other;
		this.missing = missing;
	}

	public List<Term> getTerms() {
		return terms;
	}
	
	public long getTotal() {
		return total;
	}
	
	public long getOther() {
		return other;
	}
	
	public long getMissing() {
		return missing;
	}
}
